<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <style>
        /**
         *    打印相关
        */
        @media print {
            .notprint {
                display: none;
            }

            .PageNext {
                page-break-after: always;
            }
        }
    </style>
    <style>
        .info {
            width: 950px;
            font-size: 14px;
        }

        .h50, .h30, .h20, .h10, .h5, .h1 {
            width: 100%;
            overflow: hidden;
            clear: both
        }

        .h1 {
            height: 1px;
        }

        .h5 {
            height: 5px;
        }

        .h10 {
            height: 10px;
        }

        .h20 {
            height: 20px;
        }

        .h30 {
            height: 30px;
            line-height: 30px
        }

        .h50 {
            height: 50px
        }

        .order_sn {
            text-align: center;
        }

        .top_info {
        }

        .top_info_left {
            float: left;
            width: 50%;
        }

        .top_info_left table {
            width: 85%;
            text-align: center;
        }

        .top_info_right {
            float: left;
            width: 49%;
        }

        .td_right {
            width: 25%;
            text-align: right;
        }

        td {
            padding-top: 8px;
        }

        .body_info_div {
            /*	border:1px solid red;*/
            float: left;
            width: 49.2%;
            border-right: 1px solid #000;
        }

        .body_info_div_2 {
            /*	border:1px solid red;*/
            float: left;
            width: 98.4%;
            border-right: 1px solid #000;
        }

        .info_title {
            font-weight: bold;
            text-align: center;
            border-bottom: 1px solid #000;
            padding-bottom: 5px;
            font-size: 24px;
        }

        .info_content {
            margin-left: 10px;
        }

        .bottom_info {
            border-top: 1px solid #000;
        }

        .bottom_info_left {
            float: left;
            width: 40%;
        }

        .bottom_info_right {
            float: left;
            width: 59%;
        }

        .zt { /*background-image:url("/admin/Tpl/order/black_dot.png");*/
            background-color: #FFFFFF;
            height: 45px;
            line-height: 50px;
            margin-left: -3px;
            text-align: center;
            font-size: 50px;
            font-weight: bold;
        }
    </style>
</head>
<body>

<div class="info">
    <div class="order_sn">订单号：<?php echo $orderfigure['order_id'] . '-' . $order_item_id; ?>
        |货号：<?php echo $order['product_sn']; ?>|<font">商品名称：<?php echo $orderfigure['product_name'] ?></font></div>
    <div class="h10">&nbsp;</div>
    <div class="top_info">
        <div class="top_info_left">
            <div>客户名称:<?php echo $measure['measure_name'] ?></div>
            <table>
                <tr>
                    <td></td>
                    <td>编号</td>
                    <td>成分</td>
                    <td>幅宽</td>
                    <td>耗料</td>
                </tr>
                <tr>
                    <td class="td_right">面料</td>
                    <td><?php echo $suppliers['suppliers_name'] ?></td>
                    <td><?php echo $suppliers['lining_name'] ?></td>
                    <td><?php echo $suppliers['breadth'] ?></td>
                    <td><?php echo $suppliers['material'] ?></td>
                </tr>
                <tr>
                    <td class="td_right">撞色面料</td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <?php
                $lining_db = D('lining');
                $lining_info = $lining_db->where(array('suppliers_name' => $orderfigure['attr_array'][69]['cn_attr_value_name']))->find();
                ?>
                <tr>
                    <td class="td_right">里料</td>
                    <td><?php echo isset($orderfigure['attr_array'][69]['cn_attr_value_name']) ? $orderfigure['attr_array'][69]['cn_attr_value_name'] : ' ' ?></td>
                    <td><?php echo isset($lining_info['lining_name']) ? $lining_info['lining_name'] : ' ' ?></td>
                    <td><?php echo isset($lining_info['lining_name']) ? $lining_info['breadth'] : ' ' ?></td>
                    <td><?php echo isset($lining_info['lining_name']) ? $lining_info['material'] : ' ' ?></td>
                </tr>
            </table>
        </div>
        <div class="top_info_right">
            <?php
            if ($order['emergency_fee'] > 0) {
                $day_num = 3;
            } else {
                $day_num = 7;
            }
            ?>
            <div><img src="/statics/barcodegen/code.php?text=<?php echo $Barcode; ?>" align="absmiddle"/>&nbsp;</div>
            <div style="margin-top: 10px;">交货日期：</div>
        </div>
    </div>
    <div class="h1" style=" border-top:1px solid #000;">&nbsp;</div>
    <div>
        <div>纽扣( 顺色 ):
            <?php foreach ($orderfigure['buttonArr'] as $key => $val): ?>
                &nbsp;&nbsp;&nbsp;&nbsp;<?php echo $key == '18Ljsk' ? '18L金属扣' : $key; ?><?php echo $val; ?> [&nbsp;&nbsp;]
            <?php endforeach; ?>
            &nbsp;&nbsp;&nbsp;&nbsp; 面料标: &nbsp;&nbsp;<?php echo $suppliers['suppliers_desc'] ?> [&nbsp;&nbsp;]
        </div>
        <div>其他( <?php echo $orderfigure['categoryName'] ?> ): &nbsp;&nbsp;&nbsp;&nbsp;领标 [&nbsp;&nbsp;] &nbsp;&nbsp;&nbsp;&nbsp;吊牌/吊绳
            [&nbsp;&nbsp;] &nbsp;&nbsp;&nbsp;&nbsp;辅标 [&nbsp;&nbsp;]
        </div>
    </div>
    <div class="h1" style=" border-top:1px solid #000;">&nbsp;</div>
    <?php
    $data2 = unserialize($measure['measure_data']);
    ?>
    <div class="body_info">
        <div class="body_info_div">
            <div class="info_title">客户尺寸</div>
            <div class="info_content">
                <div class="h20">&nbsp;</div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td>身高</td>
                        <td><?php echo $data2['height']['cm'] ?></td>
                    </tr>


                    <tr>
                        <td>体重</td>
                        <td><?php echo $data2['weight']['kg'] ?></td>
                    </tr>
                    <tr>
                        <td>年龄</td>
                        <td><?php echo $data2['age'] ?></td>
                    </tr>
                    <tr>
                        <td>肩</td>
                        <td><?php if ($data2['shoulder']['type'] == 1) {
                                echo "方肩";
                            } elseif ($data2['shoulder']['type'] == 2) {
                                echo "介于高和正常";
                            } elseif ($data2['shoulder']['type'] == 3) {
                                echo "正常";
                            } elseif ($data2['shoulder']['type'] == 4) {
                                echo "介于正常和溜肩";
                            } elseif ($data2['shoulder']['type'] == 5) {
                                echo "溜肩";
                            } else {
                                echo '正常';
                            } ?></td>
                    </tr>
                    <tr>
                        <td>胸</td>
                        <td><?php if ($data2['chest']['type'] == 1) {
                                echo "胸肌发达";
                            } elseif ($data2['chest']['type'] == 2) {
                                echo "介于发达和正常";
                            } elseif ($data2['chest']['type'] == 3) {
                                echo "正常";
                            } elseif ($data2['chest']['type'] == 4) {
                                echo "介于正常和肥胖";
                            } elseif ($data2['chest']['type'] == 5) {
                                echo "厚胸";
                            } else {
                                echo '正常';
                            } ?></td>
                    </tr>
                    <tr>
                        <td>肚</td>
                        <td><?php if ($data2['stomach']['type'] == 1) {
                                echo "平肚";
                            } elseif ($data2['stomach']['type'] == 2) {
                                echo "介于平腹和微凸";
                            } elseif ($data2['stomach']['type'] == 3) {
                                echo "正常";
                            } elseif ($data2['stomach']['type'] == 4) {
                                echo "介于微凸和凸腹";
                            } elseif ($data2['stomach']['type'] == 5) {
                                echo "凸肚";
                            } else {
                                echo '正常';
                            } ?></td>
                    </tr>
                    <tr>
                        <td>背</td>
                        <td><?php if ($data2['posture']['type'] == 1) {
                                echo "平背";
                            } elseif ($data2['posture']['type'] == 2) {
                                echo "微挺";
                            } elseif ($data2['posture']['type'] == 3) {
                                echo "正常";
                            } elseif ($data2['posture']['type'] == 4) {
                                echo "微驼";
                            } elseif ($data2['posture']['type'] == 5) {
                                echo "驼背";
                            } else {
                                echo '正常';
                            } ?></td>
                    </tr>
                </table>
            </div>
        </div>

        <?php foreach ($size_data_arr as $key => $val): ?>
            <div class="body_info_div">
                <div class="info_title">
                    <?php echo $val['size_type_name']; ?>
                    <span style=" font-weight:normal;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;尺码:<?php echo $val['chima']; ?></span>
                </div>
                <div class="info_content">
                    <div class="h5">&nbsp;</div>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td></td>
                            <td>成衣尺寸</td>
                            <td>MTM尺寸</td>
                        </tr>
                        <?php foreach ($val['size_name'] as $k => $v): ?>
                            <?php if($v['cysize'] !="" || $v['mtmsize'] !=""){ ?>
                                <tr>
                                    <td><?php echo $v['size_name'];?></td>
                                    <td><?php echo $v['cysize'];?></td>
                                    <td><?php echo $v['mtmsize'];?></td>
                                </tr>
                            <?php } ?>
                        <?php endforeach; ?>
                        <tr>
                            <td></td>
                            <td>MTM变更</td>
                            <td></td>
                        </tr>
                        <?php foreach ($val['mtmadd'] as $k => $v): ?>
                            <?php if(!empty($v)){?>
                                <tr>
                                    <td></td>
                                    <td><?php echo $v['size_name'] ? $v['size_name'] : '&nbsp;';?></td>
                                    <td><?php echo $v['size_val'];?></td>
                                </tr>
                            <?php } ?>
                        <?php endforeach; ?>
                    </table>
                </div>
            </div>
        <?php endforeach; ?>
    </div>
    <div class="h1">&nbsp;</div>
    <div class="body_info">
        <div class="body_info_div_2">
            <div class="info_title"></div>
            <div class="info_content">
                <div class="h20" style="height:30px;">&nbsp;货号：<?php echo $order['product_sn']; ?>
                    |<font">商品名称：<?php echo $orderfigure['product_name'] ?></font></div>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="15%">绣字内容</td>
                        <td width="35%"><?php echo isset($orderfigure['attr_array'][281]) ? $orderfigure['attr_array'][281]['cn_attr_value_name'] : '没有'; ?></td>
                        <td width="15%">领型</td>
                        <td width="35%">
                            <?php echo isset($orderfigure['attr_array'][247]) ? $orderfigure['attr_array'][247]['cn_attr_value_name'] : '没有'; ?>
                        </td>
                    </tr>
                    <tr>
                        <td>绣字字体</td>
                        <td><?php echo isset($orderfigure['attr_array'][269]) ? $orderfigure['attr_array'][269]['cn_attr_value_name'] : '没有'; ?></td>
                        <td>门襟</td>
                        <td><?php echo isset($orderfigure['attr_array'][250]) ? $orderfigure['attr_array'][250]['cn_attr_value_name'] : '没有'; ?></td>
                    </tr>
                    <tr>
                        <td>绣字颜色</td>
                        <td><?php echo isset($orderfigure['attr_array'][270]) ? $orderfigure['attr_array'][270]['cn_attr_value_name'] : '没有'; ?></td>
                        <?php if (!isset($orderfigure['attr_array'][251]) || $orderfigure['attr_array'][251]['attr_value_id'] != 1487): ?>
                            <td>袖口</td>
                            <td>
                                <?php echo isset($orderfigure['attr_array'][248]) ? $orderfigure['attr_array'][248]['cn_attr_value_name'] : '没有'; ?>
                            </td>
                        <?php else: ?>
                            <td>袖口</td>
                            <td>短袖</td>
                        <?php endif; ?>
                    </tr>
                    <tr>
                        <td>绣字位置</td>
                        <td><?php echo isset($orderfigure['attr_array'][271]) ? $orderfigure['attr_array'][271]['cn_attr_value_name'] : '没有'; ?></td>
                        <td>口袋</td>
                        <td><?php echo isset($orderfigure['attr_array'][264]) ? $orderfigure['attr_array'][264]['cn_attr_value_name'] : '没有'; ?></td>

                    </tr>
                    <tr>
                        <td>钉扣颜色</td>
                        <td><?php echo isset($orderfigure['attr_array'][273]) ? $orderfigure['attr_array'][273]['cn_attr_value_name'] : ''; ?></td>
                        <td>后褶</td>
                        <td><?php echo isset($orderfigure['attr_array'][265]) ? $orderfigure['attr_array'][265]['cn_attr_value_name'] : '没有'; ?></td>
                    </tr>
                    <tr>
                        <td>钉扣线颜色</td>
                        <td>顺色</td>
                        <td>撞色部位</td>
                        <td>
                            <?php echo isset($orderfigure['attr_array'][267]) ? $orderfigure['attr_array'][267]['cn_attr_value_name'] : '没有'; ?>
                            <?php echo isset($orderfigure['attr_array'][268]) ? (($orderfigure['attr_array'][268]['cn_attr_value_name'] !== "不撞色") ? "----撞色(" . $orderfigure['attr_array'][268]['cn_attr_value_name'] . ")" : '') : ''; ?>
                        </td>
                    </tr>

                    <tr>
                        <td></td>
                        <td></td>
                        <td>衬衫袖长选择</td>
                        <td><?php echo isset($orderfigure['attr_array'][251]) ? $orderfigure['attr_array'][251]['cn_attr_value_name'] : ''; ?></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                        <td>领袖拼白</td>
                        <td><?php echo isset($orderfigure['attr_array'][266]) ? $orderfigure['attr_array'][266]['cn_attr_value_name'] : ''; ?></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div class="h10">&nbsp;</div>
    <div class="bottom_info">
        <div class="h5">&nbsp;</div>
        <div>绣字图片:</div>
        <?php if ($font_1): ?>
            <div class="zt"
                 style='font-family:"<?php echo $font_zt; ?>";color:#000000;<?php /*echo substr($font_color, strpos($font_color, '#'));*/ ?>;'><?php echo $font_1; ?></div><?php endif; ?>
        <?php if ($font_2): ?>
            <div class="zt"
                 style='font-family:"<?php echo $font_zt; ?>";color:#000000;<?php /*echo substr($font_color, strpos($font_color, '#'));*/ ?>;'><?php echo $font_2; ?></div><?php endif; ?>
        <div style="font-size: 16px;font-weight: bold;">特殊要求:</div>
        <p  style="font-size: 16px;"><?php if($orderfigure['special_request']!="" ){echo $orderfigure['special_request'];}else{ echo $orderfigure['special_request_1']; }?></p>
    </div>
    <table width="100%" border="0">
        <tr>
            <td align="center">
                <div class="notprint"><?php if (!$noshow): ?> <input type="button" class="button"
                                                                     onclick="javascript:window.print();"
                                                                     value="打印"><?php endif; ?>    </div>
            </td>
        </tr>
    </table>

</div>
</body>
</html>